fix django coercing to Unicode: need string or buffer, long found

FFIB 4 years ago
parent
commit
71dbbc8f17
1 changed files with 1 additions and 1 deletions
  1. 1 1
      member/models.py

+ 1 - 1
member/models.py

@@ -321,7 +321,7 @@ class MemberActivityInfo(BaseModelMixin):
321 321
         verbose_name_plural = _(u'会员活动信息')
322 322
 
323 323
     def __unicode__(self):
324
-        return self.pk
324
+        return '%d' % self.pk
325 325
 
326 326
     @property
327 327
     def image_path(self):